//
//  RegisterViewController.m
//  Hui
//
//  Created by HawkingWang on 16/10/27.
//  Copyright © 2016年 Hui. All rights reserved.
//

#import "RegisterViewController.h"
#import "LoginWithAccountViewController.h"//账号登录

@interface RegisterViewController ()
@property (weak, nonatomic) IBOutlet UITextField *email;
@property (weak, nonatomic) IBOutlet UITextField *userName;
@property (weak, nonatomic) IBOutlet UITextField *password;
@property (weak, nonatomic) IBOutlet UITextField *passwordAffirm;

@end

@implementation RegisterViewController

- (void)viewDidLoad {
    [super viewDidLoad];

}
//立即注册
- (IBAction)registerr:(id)sender {
    DLog(@"立即注册");
    LoginWithAccountViewController *login = [[LoginWithAccountViewController alloc] init];
    [SVProgressHUD show];
    [SVProgressHUD showSuccessWithStatus:@"注册成功!"];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [SVProgressHUD dismiss];
        [self.navigationController pushViewController:login animated:YES];
    });
}

- (IBAction)back:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
@end
